package com.honey.company.statement;

import java.util.Date;

import org.java.plugin.Plugin;

import com.honey.compilation.java.AbstractJavaCompilation;
import com.honey.core.Extension;
import com.honey.core.utils.TimeUtility;
import com.honey.generator.java.extension.point.BeginClassListener;

/**
 * 
 * @author Administrator
 *
 */
public class ClassComment extends Extension<Plugin> implements BeginClassListener{
	
	public ClassComment(Plugin belongPlugin) {
		super(belongPlugin);
	}

	@Override
	public void doListener(AbstractJavaCompilation clazz) {
			clazz.addClassComment(
					clazz.getType().getShortName(),
					"",
					"@Date " +TimeUtility.format(new Date(), TimeUtility.FORMAT_DATE_HOUR),
					"@Platform "+System.getProperty("os.name"),
					"@author "+System.getProperty("user.name"),
					"@Arch "+System.getProperty("os.arch"),
					"@java.version "+System.getProperty("java.version"),
					"@since   JDK1.6"
					
			);
		
	}

	@Override
	public void clean() {
		
	}
	
	
}
